<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateDrawerGoodsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('drawer_goods', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->bigInteger('goods_id')->default(0)->comment('商品id，关联商品表的id');
            $table->bigInteger('drawer_id')->default(0)->comment('抽屉id，关联抽屉表的 id');
            $table->tinyInteger('is_active')->default(1)->comment('是否有效 1有效 0无效');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
